import os
import sys

__all__ = [
    "PROJECT_ROOT_DIR",
    "IMG_ROOT_DIR",
]

# 项目根目录
if getattr(sys, 'frozen', False):
    PROJECT_ROOT_DIR = os.path.dirname(sys.executable)
else:
    PROJECT_ROOT_DIR = os.path.dirname(os.path.abspath(__file__)).replace("\\", "/").replace("/boot", "")

# 项目图片目录
IMG_ROOT_DIR = PROJECT_ROOT_DIR + "/static"